/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.data.entity;

import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 广告积分日志Entity
 * @author 罗天文
 * @version 2018-03-20
 */
public class HkAdvIntegralLog extends DataEntity<HkAdvIntegralLog> {
	
	private static final long serialVersionUID = 1L;
	private HkAllAdv adv;		// 广告
	private String integral;		// 积分
	private User user;		// 用户
	
	public HkAdvIntegralLog() {
		super();
	}

	public HkAdvIntegralLog(String id){
		super(id);
	}

	public HkAllAdv getAdv() {
		return adv;
	}

	public void setAdv(HkAllAdv adv) {
		this.adv = adv;
	}
	
	@Length(min=0, max=11, message="积分长度必须介于 0 和 11 之间")
	public String getIntegral() {
		return integral;
	}

	public void setIntegral(String integral) {
		this.integral = integral;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
}